package com.ld.security.auth.server.modules.ge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.auth.server.modules.ge.constant.GeFieldConstant;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.core.base.column.ListString;
import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("ge_field")
@ApiModel("模型字段")
@Data
public class GeField extends SuperEntity

{


    @SqlKey(SqlCondition.like)
    @ApiModelProperty("数据库")
    private String tableSchema;

    @SqlKey(SqlCondition.like)
    @ApiModelProperty("表明")
    private String tableName;

    @SqlKey(SqlCondition.like)
    @ApiModelProperty("列明")
    private String columnName;

    @SqlKey
    @ApiModelProperty("列类型")
    private String columnType;

    @SqlKey
    @ApiModelProperty("字段类型")
    private GeFieldConstant.fieldType fieldType;

    @SqlKey(SqlCondition.like)
    @ApiModelProperty("列备注")
    private String columnComment;

    @SqlKey
    @ApiModelProperty("输入类型")
    private String inputType;


    @SqlKey(SqlCondition.like)
    @ApiModelProperty("标题")
    private String label;

    @SqlKey(SqlCondition.like)
    @ApiModelProperty("摘要")
    private String digest;

    @SqlKey(SqlCondition.like_right)
    @ApiModelProperty("远程服务器地址")
    private ListString requestUrls;

    @SqlKey
    @ApiModelProperty("模型编号")
    private String modelId;

    @SqlKey
    @ApiModelProperty("字段模板编号")
    private String fieldTelId;

    @SqlKey
    @ApiModelProperty("远程显示key")
    private String showKey;

    @SqlKey
    @ApiModelProperty("顺序值")
    private Integer sortVal;

    @SqlKey
    @ApiModelProperty("表格可用")
    private Boolean showTable;

    @SqlKey
    @ApiModelProperty("查询可用")
    private Boolean showQuery;

    @SqlKey
    @ApiModelProperty("修改可用")
    private Boolean showUpdate;

    @SqlKey
    @ApiModelProperty("详情可用")
    private Boolean showDetails;

    @SqlKey
    @ApiModelProperty("批量可用")
    private Boolean showMany;

    @SqlKey
    @ApiModelProperty("栅格长度")
    private Integer span;

    @SqlKey(SqlCondition.like)
    @ApiModelProperty("字段名")
    private String fieldName;


}
